<%@ page contentType="text/html; charset=ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<div id="botao1">
<div id="style1">
        <div id="barratopo">   
         <center> <font size="4">Manuten&ccedil;&atilde;o de Fornecedores</font></center>
        </div>
          <TABLE BORDER="0">
            <tr><td><a href="formFornec.action">Cadastrar </a></td>
                <td>|</td>
            	<td><a href="buscaForneConsultaNome.action">Consultar por Nome </a></td>
                <td>|</td>
                <td><a href="buscaForneConsultaCnpj.action">Consultar por CNPJ </a></td>
                <td>|</td>
                <td><a href="listaTodosFornecedores.action">Listar</a></td>
            </tr>
          </TABLE>
       </div>
<h1>Lista de Fornecedores</h1>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="formFornec.action"><img src="/crud/imagens/setasVoltar.gif" width="50" height="37" border="0"></a>
<table align=center class="borderAll">
	<tr>
		<th class="nowrapLateralLater">&nbsp;</th>
		<th class="nowrapLateral"><s:text name="CNPJ" /></th>
		<th class="nowrapLateral"><s:text name="Raz. Social" /></th>
		<th class="nowrapLateral"><s:text name="Cidade" /></th>
		<th class="nowrapLateral"><s:text name="Telefone" /></th>
		<th class="nowrapLateral">&nbsp;</th>

		
		<th class="nowrapLateral">&nbsp;</th>
		<th class="nowrapLateral">&nbsp;</th>
		<th class="nowrapLateralLater">&nbsp;</th>
	
	</tr>
	<s:iterator value="listaFornecedores" status="status">
		<tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
		    <td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrap"><s:property value="cnpj" /></td>
			<td class="nowrap"><s:property value="razaoSoc"/></td>
			<td class="nowrap"><s:property value="cidade" /></td>
			<td class="nowrap"><s:property value="telefone" /></td>
			<td class="nowrap" width="74" height="24" nowrap="nowrap"><s:url id="detalheForn"
				action="detalharFornecedor">
				<s:param name="fornecedor.id" value="id" />
			</s:url> <s:a href="%{detalheForn}"><img src="/crud/imagens/Detalhar.gif" width="74" height="24" border="0"></s:a></td>
			
			
			<td class="nowrap" width="74" height="24" nowrap="nowrap"><s:url id="updateFornecedor"
				action="setUpFornecedorInsertOrUpdate">
				<s:param name="fornecedor.id" value="id" />
			</s:url> <s:a href="%{updateFornecedor}"><img src="/crud/imagens/Edit.gif" width="74" height="24" border="0"></s:a>
			 </td>
			 
			 <td class="nowrap" width="74" height="24" nowrap="nowrap" >
			 <s:url
				id="deletarFornecedor" action="deleteFornecedor">
				<s:param name="fornecedor.id" value="id" />
			</s:url> <s:a href="%{deletarFornecedor}" onclick="return confirm('Deseja Realmente Excluir este Fornecedor?')"><img src="/crud/imagens/Excl.gif" width="74" height="24" border="0"></s:a></td>
			
			<td class="nowrapLateralLater">&nbsp;</td>
		</tr>
	</s:iterator>
	    <tr class="nowrapLateralLater">
		    <td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
			<td class="nowrapLateralLater">&nbsp;</td>
		</tr>
	<s:fielderror />
	<s:actionerror />
	<s:actionmessage />
</table>
</div>
</body>
</html>